package com.by.ui.banner;

import android.os.Bundle;
import android.support.v7.app.AppCompatActivity;

import com.by.and_widget.banner.BannerLayout;
import com.by.ui.R;

/**
 * Created by admin on 2016/5/11.
 */
public class BannerActivity extends AppCompatActivity {

    private BannerLayout mBannerLayout;
    private MyAdapter myAdapter;

    @Override
    protected void onCreate(Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        setContentView(R.layout.activity_banner);
        mBannerLayout = (BannerLayout) findViewById(R.id.banner);
        myAdapter = new MyAdapter(this);
        mBannerLayout.setAdapter(myAdapter);


    }


}
